import { useStore } from "vuex";
export function usePermission(pageName:string,handleName:string){
  const store = useStore()
  const permission = store.state.loginModule.permission
  const verifyPermission = `system:${pageName}:${handleName}`
  return !!permission.find((item:any)=>{
    return item === verifyPermission
  })
}